export interface ItineraryLine {
  /**线路ID */
  gdl_id: string
  line_day: string
  line_title: string
  line_detail: string
  line_detail_dining: string
  line_detail_stay: string
}

export interface generalGoods {
  company_id?: string
  content?: string
  gdg_id?: string
}

export interface CardGoods {
  /**
   * 卡类型
   *  0 虚拟卡 1 实体卡
   **/
  card_type: '0' | '1'

  company_id: string
  content: string
  gdc_id: string
  validity_period: string
}

export type GoodsTypeBase = 'line' | 'normal'
export type GoodsType = 'card' | 'line' | 'general'

export interface GoodsInfo {
  goods_id?: string
  price?: string
  agency_id?: string
  goods_name?: string
  goodsNameIncludeAttr: string

  /**商品类型 */
  goods_type: GoodsType
  goods_type_name?: string

  status?: string
  cover_image?: string
  line?: ItineraryLine[]
  general?: generalGoods
  card?: CardGoods
}

export interface GoodsSKUInfo {
  sku_id?: string
  goods_id?: string
  goods_attr_ids?: string
  /**库存 */
  stock: string

  goodsInfo: GoodsInfo

  /**0正常 1下架*/
  sku_status: '0' | '1'
}

export interface SkuPriceParams {
  /**商品sku id */
  sku_id: string
  /**数量 */
  quantity?: string
}

export interface SkuPriceResult {
  // 原价
  old_price: string
  /**单价-现价 */
  price: string
  // quantity: number;
  // total_old_price: string;
  /**总价 */
  total_price: string
}

export interface GoodsSKUListItem {
  sku_id: string
  /**商品id*/
  goods_id: string
  /**商品属性选项值id串*/
  goods_attr_ids: string
  /**库存数量*/
  stock: string
  /**添加人ID*/
  admin_id: string
  /**公司ID*/
  company_id: string
  /**添加日期*/
  add_date: string
  /**更新日期*/
  last_date: string
  /**供应商ID*/
  agency_id: string
  /**商品名称*/
  goods_name: string
  /**商品名称（含属性选项值名称）*/
  goodsNameIncludeAttr: string
  /**商品类型。实物、线路、礼品卡等*/
  goods_type: string
  /**挂牌价*/
  price: string
  /**商品状态：0为正常，1为关闭下架*/
  status: string
  /**商品封面图片*/
  cover_image: string
}
